package sp.util.constant;

public class SysConstant {
	
	/*---------------------------------  用户相关    ---------------------------------*/
	public static final String ALGORITHM = "SHA-512";	//加密算法
	public static final int HASH_ITERATIONS = 3;		//哈希迭代次数
	public static final String USER = "user";

	/*---------------------------------  注册相关    ---------------------------------*/
	public static final String EMIAL_RESP= "[0-9a-zA-Z_]{0,19}@[0-9a-zA-Z]{1,13}\\.com";
	public static final Integer EXPIRE_IN = 1800;
	
	/*---------------------------------  系统提示    ---------------------------------*/
	public static final String SYS_MSG = "msg";
	public static final String ERROR = "error";
	public static final String NAV_TIP = "navTip";
	
	public static int COUNT = 0;
	
	
	/*---------------------------------  图书相关    ---------------------------------*/
	public static final String BOOK_OWNER = "图书属主";
	public static final String BOOK_STATUS = "图书当前状态";
	public static final String BOOK_CONDTION = "图书品相";
	public static final String BOOK_LEVEL1 = "一级目录";
	public static final String BOOK_LEVEL2 = "二级目录";
	public static final String BOOK_LEVEL3 = "三级目录";
	public static final String RANGE_INDEX = "价格范围下标";
	
	
	
	/*------------------------ 数据字典相关    ----------------------*/
	public static final String DICT_BOOK_STATUS = "BOOK_STATUS";		//图书状态
	public static final String DICT_USER_TYPE = "USER_TYPE";			//会员类型
	public static final String DICT_PAY_STATUS = "PAY_STATUS";			//支付状态
	public static final String DICT_PAY_WAY = "PAY_WAY";				//支付方式
	public static final String DICT_CONDICTION = "BOOK_CONDTION";		//图书品相
	public static final String DICT_PRICE_RANGE = "BOOK_RANGE";			//价格范围
	
	
	
	
	/*------------------------  分页相关   -------------------------*/
	public final static String CURRNET_INDEX = "当前页下标";
	public final static String PAGESIZE = "页面大小";
	public final static Integer DEFAULT_CURRNET_INDEX = 0;
	public final static Integer DEFAULT_PAGESIZE = 5;
	
	
	
	
	/*------------------------  上传文件相关   -------------------------*/
	public final static Integer MAX_LOGO_UPLOAD_SIZE = 102400;
	public final static String BOOK_SERVER_PATH = "D:\\tomact\\apache-tomcat-8.5.38\\wtpwebapps\\uploadFiles\\sp_book";
	public final static String FILEUPLOAD_ERROR_2 = " * 上传失败！";
	public final static String FILEUPLOAD_ERROR_3 = " * 仅支持png、jpg、pneg、jpeg文件格式！";
	public final static String FILEUPLOAD_ERROR_4 = " * 上传文件过大！";
	
	
}
